from abc import ABC, abstractmethod

class BaseDataHandler(ABC):
    """数据源适配器的抽象基类"""
    @abstractmethod
    def history(self, asset, fields, bar_count):
        raise NotImplementedError

    @abstractmethod
    def current(self, asset, fields):
        raise NotImplementedError
